<template>
  <div class="gk-layout-container"> 
    <div class="gk-layout-main">
      <my-table :data="pageResult" :loading="loading"  >
          <el-table-column :label="$t('action.desc')" width="50"   header-align="center" align="center">
            <template slot-scope="scope">   {{scope.$index+1}}   </template>
          </el-table-column> 
   
          <el-table-column  header-align="center"  align="center"  prop="areaName" :label="$t('field.Core.corewharea.areaName')"   key="areaName" >  </el-table-column>
          <el-table-column  header-align="center"  align="center"   prop="all" label="所有"   key="all" >  </el-table-column>
          <el-table-column  header-align="center"  align="center"   prop="use" label="使用"     key="use" >  </el-table-column>
         
      </my-table>
  </div>

   
  </div>
</template>

<script>
  import PopupTreeInput from "@/components/PopupTreeInput"
	import MyTable from "@/views/Core/MyTable"
  import KtButton from "@/views/Core/KtButton"
  import KtDeleteButton from "@/views/Core/KtDeleteButton"
   import SQuery from "@/components/Kj/SQuery" 
	import SReflash from "@/components/Kj/SReflash"
  import { format } from "@/utils/datetime"
  export default {
    components: {
      PopupTreeInput,
      KtButton,
      KtDeleteButton,
      SQuery,
      SReflash,
      MyTable
    },
    data() {
      return {

       
       
        loading:false,  
      
        pageResult: []
 

      }
    },
 
    methods: {
      // 获取分页数据
      findPage: function (data) { 
        this.$api.corewharea.stat().then((res) => {
          this.pageResult = res.data
        })
      }, 
      getKey: function (arg) {
        return this.$t(arg)
      },
    

    },
    created() {
      this. findPage(1);
    }
  }
</script>

<style scoped>
</style>